package com.efast.dmom.aps.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.dmom.aps.bean.PlanOrder;
import com.efast.dmom.aps.bean.ResultBean;
import com.efast.dmom.aps.service.PlanOrderPartHomogeneityAnalysisService;

/**
 * To realize the analysis of planned work order
 * @author WJ
 * @date creation time 2020年2月25号
 *
 */
@Controller
@RequestMapping("/planOrderPart")
public class PlanOrderPartHomogeneityAnalysisController {
	
	@Autowired
	private PlanOrderPartHomogeneityAnalysisService planOrderPartHomogeneityAnalysisService;
	
	@RequestMapping(value = "/realizeHomogeneityAnalysis")
	public @ResponseBody ResultBean realizeHomogeneityAnalysis(@RequestBody List<PlanOrder> planOrderList) {
		return planOrderPartHomogeneityAnalysisService.realizeHomogeneityAnalysis(planOrderList);
	}

}
